import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const querySafeRiskList = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeRiskApi/querySafeRiskList", json);
  return data;
};

export const delSafeRisk = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeRiskApi/delSafeRisk", json);
  return data;
};


export const uploadFile = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeRiskApi/uploadFile", json,{
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;
};

export const updateImproveFile = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeRiskApi/updateImproveFile", json,{
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;
};


export const updateConfirmFile = async (json) => {
  let { data } = await axios.post(API_URL + "rSafeRiskApi/updateConfirmFile", json,{
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;
};